<template>
    <div class="goodContain">
        <h3 class="title">{{introduce.title}}</h3>
        <hr>
        <div class="content" v-html="introduce.content"></div>
    </div>
</template>

<script>
    export default {
        data: function () {
            return {
                id: this.$route.params.id,
                introduce: {}
            }
        },
        methods: {
            getIntroduce() {
                this.$http.get('http://www.liulongbin.top:3005/api/goods/getdesc/' + this.id).then(data => {
                    this.introduce = data.body.message[0];
                })
            }
        },
        created() {
            this.getIntroduce();
        }
    }

</script>

<style lang="less">
    .goodContain {
        padding: 5px;
        h3{
            font-size: 16px;
            color: #226aff;
            text-align: center;
            margin: 15px 0;
        }
        .content {
            img{
                width: 100%;
            }
        }
    }

</style>
